package com.wn.ziroombackend.controller;


import com.wn.ziroombackend.service.RoomImgService;
import com.wn.ziroombackend.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/roomImg")
public class RoomImgController {

    @Autowired
    private RoomImgService roomImgService;


    @RequestMapping("/del/{id}")
    public R del(@PathVariable Integer id){

        roomImgService.removeById(id);

        return R.ok("ok");
    }
}
